import Vue from 'vue'
import axios from 'axios'
import { Toast } from 'vant';
Vue.use(Toast);
Toast.loading({
    message: '加载中...',
    forbidClick: true,
  });

axios.interceptors.request.use((config)=>{
    config.headers.Authorization="Bearer "+localStorage.getItem("Token")
    return config;
},(error)=>{
    return Promise.reject(error);
})
axios.defaults.baseURL="http://xl.9yuecloud.com/api/"
export default axios